package com.himooc.jdk8.lambda;

import java.time.LocalDate;

import org.junit.Test;

/**
 * 测试LocalDate
 * 
 * @author David Chen
 *
 */
public class TestLocalDate {

	@Test
	public void testLocalDate() {
		LocalDate date = LocalDate.now();
		System.out.println("年： " + date.getYear());
		System.out.println("月： " + date.getMonthValue());
		System.out.println("日： " + date.getDayOfMonth());
		
		System.out.println(date.toString());
	}
	
}
